package com.heima.user.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import com.heima.user.service.ApUserService;
import com.heima.user.service.impl.ApUserVerificationCodeServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "app端用户登录发送手机验证码",tags = "app端用户登录发送手机验证码")
@RestController
@RequestMapping("/api/v1/login")
public class ApUserVerificationCodeController {
    @Autowired
    private ApUserVerificationCodeServiceImpl  apUserVerificationCodeService;
    @ApiOperation("app端用户登录发送手机验证码")
    @GetMapping("/verify/{tel}")
    public ResponseResult sendVerificationCode(@PathVariable("tel") String tel) {

        return apUserVerificationCodeService.sendVerificationCode(tel);
    }


}
